<?php echo $this->Html->link('Agregar Nueva Categoria', array('controller' => 'categorias', 'action' => 'add')); ?>
<table>
    <tr>
        <th>id</th>
        <th>Nombre</th>
    </tr>
    <?php foreach ($categorias as $p): ?>
        <tr>
            <td><?php echo $p['Categoria']['id']; ?></td>
            <td>
                <?php
                echo $this->Html->link($p['Categoria']['categoria'], array('controller' => 'categorias', 'action' => 'index', $p['Categoria']['id']));
                ?>
            </td>

        </tr>
    <?php endforeach; ?>
</table>